import request from '@/utils/request.js'

export const getArticles = (channelId, timestamp) => {
  return request(
    '/app/v1_1/articles',
    'get', {
      channel_id: channelId,
      timestamp,
      with_top: 1
    }
  )
}
export const dislikes = (articleId) => {
  return request(
    '/app/v1_0/article/dislikes',
    'post', {
      target: articleId
    }
  )
}
export const reports = (articleId, type) => {
  return request(
    '/app/v1_0/article/reports',
    'post', {
      target: articleId,
      type: type
    }
  )
}
